package com.knowledge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.knowledge.dao.entity.SysUser;
import com.knowledge.dao.entity.TokenEntity;

import java.util.List;

/**
 * <p>
 * 用户Token表 服务类
 * </p>
 *
 * @author zzz
 * @since 2022-03-05
 */
public interface TokenService extends IService<TokenEntity> {

     /**
     　* @description: 添加token
     　* @param ${tags}
     　* @return ${return_type}
     　* @throws
     　* @author zzz
     　* @date 2022-03-05 17:42
     */
    String addToken(SysUser sysUser);
    
     /**
     　* @description: 删除token
     　* @param ${tags}
     　* @return ${return_type}
     　* @throws
     　* @author zzz
     　* @date 2022-03-05 17:55
     */
    void removeToken(String tokenId);

     /**
     　* @description: 获取有效用户token
     　* @param ${tags}
     　* @return ${return_type}
     　* @throws
     　* @author zzz
     　* @date 2022-03-05 18:13
     */
    List<TokenEntity> listEffectiveToken();
}
